package JLB_Chapter_08;

public class code_08_07 {
    public static void main(String[] args) throws ArithmeticException {
        int num1 = 25;
        int num2 = 0;
        int result;
        if (num2== 0) {
            throw new ArithmeticException("除数不能为零");
        }
        result = num1 / num2;
        System.out.println(result);
    }
}
